package D12_6z.反射和IO_1;

public class Dog extends Animal {
    int age;

    public Dog(String id, String name,int age) {
        super(id, name);
        this.age = age;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "id='" + id + '\'' +
                ", age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
